<?php

class Layout {
	
	private $ci;
	
	public function __construct() {
		
		$this->ci = & get_instance ();
	
	}
	
	/**
	 * *
	 *
	 * 模板显示
	 *
	 * @param $view 模板名称        	
	 *
	 * @param $data 模板变量数组        	
	 *
	 *
	 */
	
	public function view($view = '', $data = '') {
		
		if (! $view) {
			
			return false;
		
		}

		$this->ci->load->view ( 'admin/public/headerV' );

		$this->ci->load->view ( 'admin/public/menuV' );
		
		$this->ci->load->view ( $view, $data );
		
		$this->ci->load->view ( 'admin/public/footerV' );
	
	}

}